package com.demo.androidgame.samgukji_hit;

import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;

import android.app.AlertDialog;
import android.content.DialogInterface;
import android.view.KeyEvent;

import com.demo.androidgame.fx.Game;
import com.demo.androidgame.fx.Screen;
import com.demo.androidgame.fx.impl.GLGame;
import com.demo.androidgame.fx.impl.GLScreen;

public class SamgukjiHit extends GLGame {

	@Override
	public Screen getStartScreen() {
		
		return new LodingScreen(this);
	}
	@Override
	public void onSurfaceCreated(GL10 gl, EGLConfig config) {
		
		super.onSurfaceCreated(gl, config);
		Assets.load(this);
	}
	
	@Override
	public void onSurfaceChanged(GL10 gl, int width, int height) {
		// TODO Auto-generated method stub
		super.onSurfaceChanged(gl, width, height);
	}
	
	@Override
	public void onPause() {
		
		super.onPause();
	}
	
	@Override
	public void onResume() {
		
		super.onResume();
	}

	@Override
	public void onBackPressed() {
		// TODO Auto-generated method stub
//		super.onBackPressed();
	}
//	@Override
//	public boolean onKeyDown(int keyCode, KeyEvent event) {
//		 if( keyCode == KeyEvent.KEYCODE_BACK )
//		  {
//		   new AlertDialog.Builder(this).setIcon(android.R.drawable.ic_dialog_alert).setTitle("Quit").setMessage("Do you want to quit").setPositiveButton("Yes", new DialogInterface.OnClickListener()
//		   {
//		     @Override
//		     public void onClick( DialogInterface dialog, int which )
//		     {
//		       finish();
//		     }
//		   }).setNegativeButton( "No", null ).show();
//		   
//		   return true;
//		  }
//		  
//		  return super.onKeyDown(keyCode, event);
//
//	}
}
